﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true"
    CodeBehind="QuanLyNguoiDung.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.Admin.QuanLyNguoiDung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Quản Lý Người Dùng</title>
    <style type="text/css">
        #qlnd
        {
            background: url("../Image/menu_focus.png") no-repeat scroll transparent;
            color: #FFFFFF;
            left: -6px;
            padding: 19px 18px 19px 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1 style="padding-left: 40px">
        Quản Lý Nhân Viên</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%;">
                <tr>
                    <td style="padding-left: 40px">
                        <asp:Button ID="btnThemND" Text="Thêm Mới" CssClass="btnThem" runat="server" OnClick="btnThemND_Click" />
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 20px">
                        <asp:GridView ID="grvQLNguoiDung" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="#333333" GridLines="None" AllowPaging="True" PageSize="15" OnPageIndexChanging="grvQLNguoiDung_PageIndexChanging"
                            OnRowCommand="grvQLNguoiDung_RowCommand">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        STT
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Tài Khoản" DataField="TaiKhoan" />
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        Chức Năng</HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton3" ImageUrl="~/Image/delete_16x16.gif" CommandName="Xoa"
                                            CommandArgument='<%#Eval("TaiKhoan")%>' runat="server" OnClientClick="return confirm('Bạn có chắc chắn muốn xóa không');" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <AlternatingRowStyle BackColor="White" />
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <SortedAscendingCellStyle BackColor="#FDF5AC" />
                            <SortedAscendingHeaderStyle BackColor="#4D0000" />
                            <SortedDescendingCellStyle BackColor="#FCF6C0" />
                            <SortedDescendingHeaderStyle BackColor="#820000" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnThemND" EventName="click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
